package org.oschina.plugin.impl;

import javax.servlet.ServletContext;
import org.oschina.config.Config;
import org.oschina.plugin.AbstractPlugin;
import org.oschina.plugin.annotation.Plugin;

@Plugin
public class ConstantInitPlugin extends AbstractPlugin {

	@Override
	public String getExplain()
	{
		return "常量初始化插件";
	}
	
	@Override
	public void init(ServletContext servletContext)
	{
		servletContext.setAttribute("Constants",new Config());
	}
}